
var lineOption = {
    title: {
        text: '浏览量PV'
    },
    tooltip : {
        trigger: 'axis',
        axisPointer: {
            type: 'cross',
            label: {
                backgroundColor: '#6a7985'
            }
        },
        formatter: function (params, ticket, callback) {
            var title=params[0]['axisValue']+':00-'+params[0]['axisValue']+':59';
            let html=title+'<br>'+params[0]['seriesName']+' : ' +params[0]['value'];
            return html;
        }
    },
    legend: {
        data:['浏览量PV']
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
            // data : ["00:00 - 00:59", "01:00 - 01:59", "02:00 - 02:59", "03:00 - 03:59", "04:00 - 04:59", "05:00 - 05:59", "06:00 - 06:59", "07:00 - 07:59", "08:00 - 08:59", "09:00 - 09:59", "10:00 - 10:59", "11:00 - 11:59", "12:00 - 12:59", "13:00 - 13:59", "14:00 - 14:59", "15:00 - 15:59", "16:00 - 16:59", "17:00 - 17:59", "18:00 - 18:59", "19:00 - 19:59", "20:00 - 20:59", "21:00 - 21:59", "22:00 - 22:59", "23:00 - 23:59"]
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'浏览量PV',
            type:'line',
            stack: '总量',
            areaStyle: {normal: {color:'rgba(132, 216, 243, 0.69)'}},
            data:[322, 134, 48, 19, 19, 21, 69, 140, 694, 1831, 2228, 1776, 790, 1022, 1808, 2156, 2004, 1739, 804, 718, 808, 936, 761, 562]
        }
    ]
};

